﻿<%@ Page Title="Topic" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage.Master" Inherits="System.Web.Mvc.ViewPage<string>" %>

<asp:Content ID="TitleContent" ContentPlaceHolderID="htmlHeader" runat="server">

</asp:Content>

<asp:Content ID="MaiContent" ContentPlaceHolderID="MainContent" runat="server">

    <%using (Html.BeginForm("CreateTopic", "Community", FormMethod.Post, new { enctype = "multipart/form-data" }))
      { %>
      <%Html.Hidden("categoryID", Model); %>
      <table>
      <tr>
      <td>
      Topic Title:     
      </td>
      <td>
      <%=Html.TextBox("newTopic.Title")%>
      </td>

      </tr>

      <tr>
      <td>There will be voting</td>
      </tr>

      <tr>
      <td rowspan="3">
      Message:
    
      </td>
      <td rowspan="3">
      <%=Html.TextArea("newTopic.Comments[0].Text")%>
      </td>
      
      </tr>

      <tr>
      <td>Images</td>
      <td><input type="file" name="Images" /></td>
      <td><input type="file" name="Images" /></td>
      <td><input type="text" name="ImagesUrl" /></td>
      </tr>
      
      </table>

      <input type="submit" value="Create" />


      <%}%>



</asp:Content>